package com.TestDemo.Test1;

public class TestThrow1 {
    public static void main(String[] args) {

        TestThrow1 tt = new TestThrow1();




        System.out.println(tt.off(2));


    }


    public static int off(int value) {
        try {
            return value = value * value;
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            if (value == 2) {
                return 2;
            }else {
                return 5;
            }
        }
    }
}